/*
* Copyrigth 2008 Company All rigths reserved
* File Name: TS_Class_Entity.cs
* Created By:    Wenbin.Xu
* Created Date:   2013/7/8 16:06:53
* Description:    TS_Class的实体类
* Change History: 
* 
* */
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WisDragon.Framework.EntityAttribute;

namespace TrainingsApp.Model {
    /// <summary>
    /// 表示TS_Class的类型
    /// </summary>
    public class TS_Class_Entity {
        /// <summary>
        /// 班级主键
        /// </summary>
        [DataMapping("Idx", System.Data.DbType.Int64)]
        public System.Int64? Idx { get; set; }

        /// <summary>
        /// 年级
        /// </summary>
        [DataMapping("Grade", System.Data.DbType.Int32)]
        public System.Int32? Grade { get; set; }


        /// <summary>
        /// 年级
        /// </summary>
        [DataMapping("SchoolId", System.Data.DbType.Int64)]
        public System.Int64? SchoolId { get; set; }

        /// <summary>
        /// 班级名称
        /// </summary>
        [DataMapping("ClassName", System.Data.DbType.AnsiString)]
        public System.String ClassName { get; set; }


        [DataMapping("GradeName", System.Data.DbType.AnsiString)]
        public string GradeName { get; set; }


        [DataMapping("SchoolName", System.Data.DbType.AnsiString)]
        public string SchoolName { get; set; }

        public string DropdownName {
            get {
                return string.Format("{0}{1}", GradeName, ClassName);
            }
        }


    }
}